package com.zhiche.lisa.lspm.dao.model.lsp;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 承运商间关系
 * </p>
 *
 * @author qichao
 * @since 2018-05-23
 */
@TableName("lisa_lsp_relation")
public class LspRelation extends Model<LspRelation> {

    private static final long serialVersionUID = 1L;

	private Integer id;
    /**
     * 源实体
     */
	@TableField("s_lsp")
	private Integer sLsp;
    /**
     * 目标实体
     */
	@TableField("t_lsp")
	private Integer tLsp;
    /**
     * 关系类型ID
     */
	@TableField("relation_type")
	private Integer relationType;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getsLsp() {
		return sLsp;
	}

	public void setsLsp(Integer sLsp) {
		this.sLsp = sLsp;
	}

	public Integer gettLsp() {
		return tLsp;
	}

	public void settLsp(Integer tLsp) {
		this.tLsp = tLsp;
	}

	public Integer getRelationType() {
		return relationType;
	}

	public void setRelationType(Integer relationType) {
		this.relationType = relationType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LspRelation{" +
			", id=" + id +
			", sLsp=" + sLsp +
			", tLsp=" + tLsp +
			", relationType=" + relationType +
			"}";
	}
}
